home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / T / TC Prog Guide.cpt / picture ƒ / frame.h < prev    next >
Text File  |  1991-02-16  |  625b  |  29 lines

  1. /*
  2. *    FILE:        frame.h
  3. *    AUTHOR:        R. Gonzalez
  4. *    CREATED:    October 3, 1990
  5. *
  6. *    Defines window frame (center, width, and height) for picture
  7. *    application.  Useful for 2D mapping.
  8. */
  9.  
  10. # ifndef    frame_h
  11. # define    frame_h
  12.  
  13. # include    "class.h"
  14.  
  15. /******************************************************************
  16. *   general-purpose frame
  17. ******************************************************************/
  18. struct    Frame:Generic_Class
  19. {
  20.     double            x;        /* public */
  21.     double            y;        /* public */
  22.     double            width;    /* public */
  23.     double            height;    /* public */
  24.         
  25.     boolean            init(void);
  26.     virtual void    set(double,double,double,double);
  27. };
  28.  
  29. # endif